for (i = 0; i < n; i++)
{
- const GtkStyleProperty *prop = _gtk_style_property_get (i);
+ GtkStyleProperty *prop = _gtk_style_property_get (i);
const GValue *result;
/* http://www.w3.org/TR/css3-cascade/#cascade
}
static void
-gtk_css_ruleset_add (GtkCssRuleset *ruleset,
- const GtkStyleProperty *prop,
- PropertyValue *value)
+gtk_css_ruleset_add (GtkCssRuleset *ruleset,
+ GtkStyleProperty *prop,
+ PropertyValue *value)
{
if (ruleset->style == NULL)
{
for (i = 0; i < n_parameters; i++)
{
- const GtkStyleProperty *child;
+ GtkStyleProperty *child;
PropertyValue *val;
child = _gtk_style_property_lookup (parameters[i].name);
parse_declaration (GtkCssScanner *scanner,
GtkCssRuleset *ruleset)
{
- const GtkStyleProperty *property;
+ GtkStyleProperty *property;
char *name;
gtk_css_scanner_push_section (scanner, GTK_CSS_SECTION_DECLARATION);
static int
compare_properties (gconstpointer a, gconstpointer b)
{
- return strcmp (((const GtkStyleProperty *) a)->pspec->name,
- ((const GtkStyleProperty *) b)->pspec->name);
+ return strcmp (((GtkStyleProperty *) a)->pspec->name,
+ ((GtkStyleProperty *) b)->pspec->name);
}
static void
GtkStylePropertyParser *parse_func,
GParamSpec **pspec)
{
- const GtkStyleProperty *node;
+ GtkStyleProperty *node;
gboolean found = FALSE;
g_return_val_if_fail (property_name != NULL, FALSE);
}
void
-_gtk_style_properties_set_property_by_property (GtkStyleProperties *props,
- const GtkStyleProperty *style_prop,
- GtkStateFlags state,
- const GValue *value)
+_gtk_style_properties_set_property_by_property (GtkStyleProperties *props,
+ GtkStyleProperty *style_prop,
+ GtkStateFlags state,
+ const GValue *value)
{
GtkStylePropertiesPrivate *priv;
PropertyData *prop;
GtkStateFlags state,
const GValue *value)
{
- const GtkStyleProperty *node;
+ GtkStyleProperty *node;
g_return_if_fail (GTK_IS_STYLE_PROPERTIES (props));
g_return_if_fail (property != NULL);
while (property_name)
{
- const GtkStyleProperty *node;
+ GtkStyleProperty *node;
gchar *error = NULL;
GValue val = G_VALUE_INIT;
}
const GValue *
-_gtk_style_properties_peek_property (GtkStyleProperties *props,
- const GtkStyleProperty *property,
- GtkStateFlags state)
+_gtk_style_properties_peek_property (GtkStyleProperties *props,
+ GtkStyleProperty *property,
+ GtkStateFlags state)
{
GtkStylePropertiesPrivate *priv;
PropertyData *prop;
GtkStylePropertyContext *context,
GValue *value)
{
- const GtkStyleProperty *node;
+ GtkStyleProperty *node;
g_return_val_if_fail (GTK_IS_STYLE_PROPERTIES (props), FALSE);
g_return_val_if_fail (property != NULL, FALSE);
GtkStateFlags state)
{
GtkStylePropertiesPrivate *priv;
- const GtkStyleProperty *node;
+ GtkStyleProperty *node;
PropertyData *prop;
guint pos;
va_list args);
const GValue * _gtk_style_properties_peek_property (GtkStyleProperties *props,
- const GtkStyleProperty *property,
+ GtkStyleProperty *property,
GtkStateFlags state);
void _gtk_style_properties_set_property_by_property (GtkStyleProperties *props,
- const GtkStyleProperty *property,
+ GtkStyleProperty *property,
GtkStateFlags state,
const GValue *value);
return __style_property_array ? __style_property_array->len : 0;
}
-const GtkStyleProperty *
+GtkStyleProperty *
_gtk_style_property_get (guint id)
{
g_assert (__style_property_array);
}
gboolean
-_gtk_style_property_parse_value (const GtkStyleProperty *property,
- GValue *value,
- GtkCssParser *parser,
- GFile *base)
+_gtk_style_property_parse_value (GtkStyleProperty *property,
+ GValue *value,
+ GtkCssParser *parser,
+ GFile *base)
{
GtkStyleParseFunc func;
}
void
-_gtk_style_property_print_value (const GtkStyleProperty *property,
- const GValue *value,
- GString *string)
+_gtk_style_property_print_value (GtkStyleProperty *property,
+ const GValue *value,
+ GString *string)
{
GtkStylePrintFunc func;
}
static void
-_gtk_style_property_default_value (const GtkStyleProperty *property,
- GtkStyleProperties *properties,
- GtkStateFlags state,
- GValue *value)
+_gtk_style_property_default_value (GtkStyleProperty *property,
+ GtkStyleProperties *properties,
+ GtkStateFlags state,
+ GValue *value)
{
g_value_copy (&property->initial_value, value);
}
gboolean
-_gtk_style_property_is_inherit (const GtkStyleProperty *property)
+_gtk_style_property_is_inherit (GtkStyleProperty *property)
{
g_return_val_if_fail (property != NULL, FALSE);
}
guint
-_gtk_style_property_get_id (const GtkStyleProperty *property)
+_gtk_style_property_get_id (GtkStyleProperty *property)
{
g_return_val_if_fail (property != NULL, FALSE);
}
static void
-_gtk_style_property_resolve (const GtkStyleProperty *property,
+_gtk_style_property_resolve (GtkStyleProperty *property,
GtkStyleProperties *props,
GtkStateFlags state,
GtkStylePropertyContext *context,
}
const GValue *
-_gtk_style_property_get_initial_value (const GtkStyleProperty *property)
+_gtk_style_property_get_initial_value (GtkStyleProperty *property)
{
g_return_val_if_fail (property != NULL, NULL);
}
GParameter *
-_gtk_style_property_unpack (const GtkStyleProperty *property,
- const GValue *value,
- guint *n_params)
+_gtk_style_property_unpack (GtkStyleProperty *property,
+ const GValue *value,
+ guint *n_params)
{
g_return_val_if_fail (property != NULL, NULL);
g_return_val_if_fail (property->unpack_func != NULL, NULL);
}
static void
-_gtk_style_property_pack (const GtkStyleProperty *property,
- GtkStyleProperties *props,
- GtkStateFlags state,
+_gtk_style_property_pack (GtkStyleProperty *property,
+ GtkStyleProperties *props,
+ GtkStateFlags state,
GtkStylePropertyContext *context,
- GValue *value)
+ GValue *value)
{
g_return_if_fail (property != NULL);
g_return_if_fail (property->pack_func != NULL);
}
void
-_gtk_style_property_query (const GtkStyleProperty *property,
+_gtk_style_property_query (GtkStyleProperty *property,
GtkStyleProperties *props,
GtkStateFlags state,
GtkStylePropertyContext *context,
* Returns: (transfer none): The property or %NULL if no
* property with the given name exists.
**/
-const GtkStyleProperty *
+GtkStyleProperty *
_gtk_style_property_lookup (const char *name)
{
GtkStylePropertyClass *klass;
GType _gtk_style_property_get_type (void) G_GNUC_CONST;
guint _gtk_style_property_get_count (void);
-const GtkStyleProperty * _gtk_style_property_get (guint id);
+GtkStyleProperty * _gtk_style_property_get (guint id);
-const GtkStyleProperty * _gtk_style_property_lookup (const char *name);
+GtkStyleProperty * _gtk_style_property_lookup (const char *name);
const char * _gtk_style_property_get_name (GtkStyleProperty *property);
GtkStylePrintFunc print_func,
const GValue *initial_value);
-gboolean _gtk_style_property_is_inherit (const GtkStyleProperty *property);
-guint _gtk_style_property_get_id (const GtkStyleProperty *property);
+gboolean _gtk_style_property_is_inherit (GtkStyleProperty * property);
+guint _gtk_style_property_get_id (GtkStyleProperty * property);
const GValue * _gtk_style_property_get_initial_value
- (const GtkStyleProperty *property);
+ (GtkStyleProperty * property);
-GParameter * _gtk_style_property_unpack (const GtkStyleProperty *property,
+GParameter * _gtk_style_property_unpack (GtkStyleProperty * property,
const GValue *value,
guint *n_params);
-gboolean _gtk_style_property_parse_value (const GtkStyleProperty *property,
+gboolean _gtk_style_property_parse_value (GtkStyleProperty * property,
GValue *value,
GtkCssParser *parser,
GFile *base);
-void _gtk_style_property_print_value (const GtkStyleProperty *property,
+void _gtk_style_property_print_value (GtkStyleProperty * property,
const GValue *value,
GString *string);
-void _gtk_style_property_query (const GtkStyleProperty *property,
+void _gtk_style_property_query (GtkStyleProperty * property,
GtkStyleProperties *props,
GtkStateFlags state,
GtkStylePropertyContext *context,